package com.zyg.jas.studentport.service;

import com.zyg.jas.common.pojo.Homework;
import com.zyg.jas.common.pojo.Score;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.text.ParseException;
import java.util.List;
import java.util.Map;

public interface HomeworkService2 {
    Integer saveJob(MultipartFile multipartFile, Homework homework) throws IOException, ParseException;

    Integer saveJobForApp(MultipartFile multipartFile, Homework homework) throws IOException, ParseException;
    List<Homework> getAllJobs(String cmtId, Integer pageNo, Integer pageSize);

    Integer getCount(String cmtId);

    Integer removeJobById(Integer hId);

    List<Homework> getForSearch(String comId, String hName);

    Integer removeByBatch(List<Homework> homeworks);
//    学生端使用
    List<Homework> getHomeworkByCourseid(String courseId, String comId, Integer pageNo, Integer pageSize);

    Integer selectCount(String courseId, String comId);

    List<Homework>selectAlreadyCommit(String sNo);


    List<Homework>selectNotCommit(String sNo, String comId);

    List<Homework>selectSpecificAlreadyCommit(String sNo, String courseId);


    List<Homework>selectSpecificNotCommit(String sNo, String comId, String courseId);
//    Integer saveHomework(MultipartFile multipartFile, Score score) throws IOException, ParseException;
}
